package com.redhat.auth.log.annotation;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

import com.redhat.auth.log.parse.ValueParse;

@Target({ElementType.ANNOTATION_TYPE})
@Retention(RetentionPolicy.RUNTIME)
public @interface RecordValue {
	
	/*在DESC中使用的变量名*/
	public String key();
	
	/*定义值来源*/
	public ValueType valueType();
	
	/*定义值表达式*/
	public String expr();
	
	/**
	 * 定义值解析
	 * @return
	 */
	public Class valueParse() default ValueParse.class;
	
}
